.order-voucher{
  $margin: 30px;
  $bg-color: #fff;
  height: 1148px;
  position: relative;
  &-item{
    top: 0;
    width: 100%;
    //opacity: 0;
    overflow: hidden;
    position: absolute;
    //transform: scale(0.7, 0.7);
    //transition: 600ms ease 0ms;
    //padding-top: 40px;
    border-radius: 16px;
  }

  &-basis{
    height: 780px;
    padding: 40px;
    background: $bg-color;
  }

  &-store{
    color: #333;
    display: flex;
    font-size: 24px;
    align-items: center;
    flex-direction: column;
    &-img{
      width: 100px;
      height: 100px;
      border: 1px solid #ffdd00;
      overflow: hidden;
      border-radius: 50%;
    }
    &-name{
      margin-top: 10px;
    }
    &-goods{
      margin-top: 20px;
      text-align: center;
    }
    &-attr{
      margin-top: 20px;
      text-align: center;
    }
  }

  &-qrCode{
    width: 300px;
    height: 300px;
    position: relative;
    &--end:after{
      background-image: url("../../../assets/icon/goods-end.png");
    }
    &--saled:after{
      background-image: url("../../../assets/icon/goods-saled.png");
    }
    &--end,&--saled{
      &:after{
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        content: "";
        position: absolute;
        background-size: 64% auto;
        background-color: rgba(255, 255, 255, .8);
        background-repeat: no-repeat;
        background-position: center;
      }
    }
    &--small:after{
      background-size: 36% auto;
    }
  }

  &-code{
    display: flex;
    align-items: center;
    flex-direction: column;
    &-list{
      color: #999;
      display: flex;
      font-size: 32px;
      margin-top: 10px;
    }
    &-item{
      margin: 0 8px;
      letter-spacing: 6px;
    }
  }

  &-line{
    $height: 48px;
    width: 100%;
    height: 48px;
    position: relative;
    &:before, &:after{
      width: 50%;
      height: $height;
      content: '';
      position: absolute;
    }
    &:before{
      left: 0;
      background: radial-gradient(36px at left, transparent 50%, $bg-color 50%);
    }
    &-border{
      top: 50%;
      left: 50%;
      width: calc(100% - 36px);
      z-index: 10;
      position: absolute;
      transform: translate(-50%, -50%);
      border-bottom: 4px dotted #ffdd00;
    }
    &:after{
      right: 0;
      background: radial-gradient(36px at right, transparent 50%, $bg-color 50%);
    }
  }

  &-verify{
    height: 320px;
    padding: 72px 40px 40px;
    display: flex;
    background: $bg-color;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    &-info{
      font-size: 24px;
      min-height: 90px;
    }

    &-btn{
      width: 300px;
      height: 80px;
      font-size: 28px;
    }
  }
}

.order-voucher{
  $margin: 30px;
  $bg-color: #fff;

  .coupon-list{
    height: 1220px;
    position: relative;
    .list-item{
      width: 100%;
      //height: 1086px;
      //padding: $margin $margin 0;
      padding-top: 40px;
      position: absolute;
      top: 0;
      transition: 600ms ease 0ms;
      opacity: 0;
      transform: scale(0.7, 0.7);
    }
    .active{opacity: 1;transform: scale(1, 1);}
    .active-one{opacity: 0.6;transform: scale(0.9, 0.9);}
    .active-two{opacity: 0.3;transform: scale(0.8, 0.8);}
    //  左平移
    .left-tran{transform: translateX(-150vw);}
    //  右平移
    .right-tran{transform: translateX(150vw);}
  }

  .coupon-info{
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    .basis-info{
      height: 780px;
      padding: 40px;
      background: $bg-color;
      .goods-info, .qr-code-info{
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
      }
      .goods-info{
        .store-img{
          width: 100px;
          height: 100px;
          border-radius: 50%;
          overflow: hidden;
          border: 1px solid #ffdd00;
          image{width: 100%;height: 100%;}
        }
        .store-name{color: #333;margin-top: 10px;}
        .goods-name{color: #333;margin-top: 20px;width: 100%;text-align: center;}
      }
      .qr-code-info{
        .bar-code{
          color: #999;
          margin-top: 10px;
          font-size: 32px;
          .code{
            margin-right: 16px;
            letter-spacing: 6px;
            &:last-child{margin-right: 0;}
          }
        }
        //  二维码
        .verify-code{
          width: 300px;
          height: 300px;
          position: relative;
          .cover-img{
            width: 100%;
            height: 100%;
            position: absolute;
            background: rgba(255, 255, 255, .7);
            image{width: 120px;height: 120px;}
          }
        }
      }
    }
    .segmentation{
      $height: 48px;
      width: 100%;
      height: 48px;
      position: relative;
      &:before, &:after{width: 50%;height: $height;content: '';position: absolute;}
      &:before{left: 0;background: radial-gradient(36px at left, transparent 50%, $bg-color 50%);}
      .cut-off-rule{top: 50%;left: 50%;width: calc(100% - 36px);z-index: 10;position: absolute;transform: translate(-50%, -50%);border-bottom: 4px dotted #ffdd00;}
      &:after{right: 0;background: radial-gradient(36px at right, transparent 50%, $bg-color 50%);}
    }
    .info-bottom{
      height: 320px;
      padding: 72px 40px 40px;
      background: $bg-color;
      .verify-content{
        height: 90px;
        width: fit-content;
      }
      .verify-button{
        width: 300px;
        height: 80px;
        margin-top: 30px;
        border-radius: 100px;
        background: #ffdd00;
      }
    }
    .dashed{
      background: #dadada;
    }
  }

}